//
//  GRUploadManager.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/21.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GRUploadManager : NSObject


/**
 获取上传单例

 @return <#return value description#>
 */
+ (instancetype)defaultManager;


#pragma Mark =================  批量上传  ===================

/**
 批量上传图片（对上传顺序无要求）

 @param pictures 图片资源
 @param completion <#completion description#>
 */
- (void)uploadWithPictures:(NSArray<UIImage *> *)pictures completion:(void(^)(NSArray *imgURLs, NSDictionary *option))completion;



/**
 顺序批量上传图片

 @param option 图片标记 such as @{@"bank" : @"url"}
 @param completion <#completion description#>
 */
- (void)uploadPicturesInBatchOrder:(NSDictionary *)option completion:(void(^)(NSDictionary *successOption, NSDictionary *failOption))completion;


#pragma Mark =================  单个上传  ===================

/**
 上传视频

 @param filepath 视频路径
 @param completion <#completion description#>
 */
- (void)uploadWithVideo:(NSString *)filepath completion:(void(^)(NSString *videoURL, BOOL success))completion;


/**
 上传单张图片

 @param image <#image description#>
 @param completion <#completion description#>
 */
- (void)uploadSingleIMAGE:(UIImage *)image completion:(void(^)(NSString *imgURL, BOOL success))completion;

- (void)uploadWithVideo:(NSString *)filepath  KeyStr:(NSString *)keyStr  UploadToken:(NSString *)uploadToken completion:(void(^)(NSString *videoURL, BOOL success))completion;

@end
